import request from '@/utils/request'

export interface UserSkill {
  id: number
  userId: number
  skillName: string
  skillLevel: number
  skillColor: string
  skillDescription?: string
  sortOrder: number
  createTime?: string
  updateTime?: string
}

/**
 * 获取用户技能列表（前台）
 */
export const getUserSkills = async (userId: string): Promise<UserSkill[]> => {
  return await request({
    url: '/portal/user-skill/list',
    method: 'post',
    data: { userId },
  })
}
